home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 3 / Gold Medal Software - Volume 3 (Gold Medal) (1994).iso / bbsutils / smb_110a.arj / SMBLIB.H < prev    next >
C/C++ Source or Header  |  1994-03-26  |  2KB  |  60 lines

  1. /* SMBLIB.H */
  2.  
  3. #ifndef _SMBLIB_H
  4. #define _SMBLIB_H
  5.  
  6. #include <io.h>
  7. #include <dir.h>
  8. #include <mem.h>
  9. #include <time.h>
  10. #include <alloc.h>
  11. #include <errno.h>
  12. #include <fcntl.h>
  13. #include <stdio.h>
  14. #include <stdlib.h>
  15. #include <string.h>
  16. #include <sys/stat.h>
  17.  
  18. #define GLOBAL extern    /* turn smbvars.c files into header */
  19.  
  20. #include "smbvars.c"
  21.  
  22. int     smb_open(int retry_time);
  23. int     smb_open_da(int retry_time);
  24. int     smb_open_ha(int retry_time);
  25. int     smb_create(ulong max_crcs, ulong max_msgs, ushort max_age
  26.                   ,int retry_time);
  27. int     smb_trunchdr(int retry_time);
  28. int     smb_locksmbhdr(int retry_time);
  29. int     smb_getstatus(smbstatus_t *status);
  30. int     smb_putstatus(smbstatus_t status);
  31. int     smb_unlocksmbhdr();
  32. int     smb_getmsgidx(smbmsg_t *msg);
  33. int     smb_getlastidx(idxrec_t *idx);
  34. int     smb_getmsghdrlen(smbmsg_t msg);
  35. long    smb_getmsgdatlen(smbmsg_t msg);
  36. int     smb_lockmsghdr(smbmsg_t msg, int retry_time);
  37. int     smb_getmsghdr(smbmsg_t *msg);
  38. int     smb_unlockmsghdr(smbmsg_t msg);
  39. int     smb_addcrc(ulong max_crcs, ulong crc, int retry_time);
  40. int     smb_hfield(smbmsg_t *msg, ushort type, ushort length, void *data);
  41. int     smb_dfield(smbmsg_t *msg, ushort type, ulong length);
  42. int     smb_addmsghdr(smbmsg_t *msg, smbstatus_t *status, int fast
  43.                 ,int retry_time);
  44. int     smb_putmsg(smbmsg_t msg);
  45. int     smb_putmsgidx(smbmsg_t msg);
  46. int     smb_putmsghdr(smbmsg_t msg);
  47. void    smb_freemsgmem(smbmsg_t msg);
  48. long    smb_hdrblocks(ulong length);
  49. long    smb_datblocks(ulong length);
  50. long    smb_allochdr(ulong length);
  51. long    smb_fallochdr(ulong length);
  52. long    smb_allocdat(ulong length, ushort headers);
  53. long    smb_fallocdat(ulong length, ushort headers);
  54. int     smb_incdat(ulong offset, ulong length, ushort headers);
  55. int     smb_freemsg(smbmsg_t msg, smbstatus_t status);
  56. int     smb_freemsgdat(ulong offset, ulong length, ushort headers);
  57. int     smb_freemsghdr(ulong offset, ulong length);
  58.  
  59. #endif /* Don't add anything after this #endif statement */
  60.